package com.his.controller;


import com.his.entity.CaseHistory;
import com.his.entity.ResponseResult;
import com.his.service.ICaseHistoryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 病历表 前端控制器
 * </p>
 *
 * @author Demoon Liu
 * @since 2022-02-20
 */
@Tag(name="CaseHistoryController--病例管理接口")
@RestController
@RequestMapping("/case-history")
public class CaseHistoryController {

    @Resource
    public ICaseHistoryService iCaseHistoryService;

    @Operation(summary = "提交初诊信息",description ="输入：casehistory中的（priliminarydisestrlist）。 返回：一个casehistory信息 ")
    @PostMapping("/submit")
    public ResponseResult submit(CaseHistory caseHistory){ return iCaseHistoryService.submit(caseHistory); }

    @Operation(summary = "查找未完成的病例信息",description ="输入：无。 返回：多个casehistory信息 ")
    @PostMapping("/selectIn")
    public ResponseResult selectIncomplete(){ return iCaseHistoryService.selectIncomplete(); }

    @Operation(summary = "查找已完成的病例信息",description ="输入：无。 返回：多个casehistory信息 ")
    @PostMapping("/selectCom")
    public ResponseResult selectComplete(){ return iCaseHistoryService.selectComplete(); }



}
